setInterval(function () {
  let date = new Date();
  let year = date.getFullYear();
  let month = date.getMonth() + 1;
  let day = date.getDate();
  let weekArray = new Array(
    "星期日",
    "星期一",
    "星期二",
    "星期三",
    "星期四",
    "星期五",
    "星期六"
  );
  let week = weekArray[date.getDay()];
  let hour = date.getHours();
  let minute = date.getMinutes();
  let second = date.getSeconds();
  let nyr = year + "/" + month + "/" + day + " " + week;
  let time = hour + ":" + minute + ":" + second;
  $("#time").text(time);
  $("#date").text(nyr);
}, 1000);
